package com.yao.filter;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/2/16 15:25
 * FileName: SecurityFilter
 * Description:
 */

@WebFilter(filterName = "SecurityFilter",urlPatterns="/*")
@Slf4j
public class SecurityFilter extends HttpFilter {
    @Override
    public void doFilter(HttpServletRequest servletRequest, HttpServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.info("SecurityFilter");
        filterChain.doFilter(servletRequest,servletResponse);
    }
}
